<?php

use yii\db\Migration;

/**
 * Class m240524_121728_create_region_types
 */
class m240524_121728_create_region_types extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->createTable('{{%regionType}}', [
            'id' => $this->primaryKey(),
            'type' => $this->string()->notNull(),
        ]);

    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropTable('regionType');
    }
}
